class CouponOrder < ApplicationRecord
  belongs_to :member
  has_one :running_account, class_name: "CouponRunningAccount", foreign_key: :order_no, primary_key: :order_no
  enum status: {deleted: -2, canceled: -1, pending: 0, paid: 1, refunded: 2}
  before_save {false}
end
